package com.example.mvpdemo.simple6;

import com.example.mvpdemo.simple6.base.BasePresnter6;

//要持有M层的引用
//要持有V层的引用
//对M层和V层进行关联
public class LoginPresnter6 extends BasePresnter6<LoginView6> {

    private LoginModule6 loginModule;

    public LoginPresnter6(){
        this.loginModule = new LoginModule6(this);
    }



    public void login(String username,String password)
    {
        this.loginModule.login(username, password);
    }

    public void loginResult(String ret)
    {
        getView().onLoginResult(ret);
    }
}
